package com.zjitc.dao;

import com.zjitc.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Aspire on 2018/3/28.
 */
public interface UserDao {
  User login(@Param("username") String username,@Param("password") String password);
  int register(User user);
  int checkEmail(@RequestParam("email") String emial);
  int checkUsername(@Param("username") String username);
}
